Packing 2×2 unit squares into grid polygons is NP-complete

نویسندگان

  • Dania El-Khechen
  • Muriel Dulieu
  • John Iacono
  • Nikolaj van Omme
چکیده

In a packing problem, the goal is to put some small objects disjointly into a large container, while optimizing some objective function. The packing problem is very general, and a rich variety of objects and containers are possible. One major split in the taxonomy of packing concerns whether the objects to be packed are allowed to be different or are all identical. In the case of identical packing, probably the simplest non-trivial variant is the following problem, which we call the 2 × 2 packing problem: How many axis-aligned 2× 2 squares can be packed inside a polygon P with n edges drawn on a unit grid, where the squares must be packed such that each occupies exactly four grid locations (i.e. rotation or fractional placement is forbidden)? Whether the problem when P is restricted to be simple (the 2× 2 simple packing problem) is polynomial or NP -complete appears on the open problem project [1] as problem 56. There they cite [3] as proving the 2× 2 packing problem NP complete (where P must be allowed to have holes). This is not true, as in [3] they do prove NP -completeness, but only when all possible locations where the squares could be packed are explicitly provided in the input. Since the size of a normal representation of a grid polygon using binary integers can differ exponentially from the number of possible packing locations inside the polygon (e.g. a k×k square requires Θ(log k) bits to represent but has Θ(k) packing locations), it does not follow from their result that the 2 × 2 packing problem is in NP if the input is simply a polygon. The result of [3] does prove NP -hardness for 2 × 2 packing problem. This paper is devoted to proving the 2 × 2 packing problem is in NP , and thus, combined with the work of [3] proves NP -completeness for the first time. Whether the 2× 2 simple packing problem is polynomial or NP -complete remains an important open question, and remains open quite surprisingly even if P is restricted to be orthogonally convex. A simple greedy algorithm works for Manhattan Skyline polygons [2], the most complex class of polygons for which a polynomial algorithm is known.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Packing Trominoes is NP-Complete, #P-Complete and ASP-Complete

We study the computational complexity of packing puzzles of identical polyominoes. Packing dominoes (i.e., 1 × 2 rectangles) into grid polygons can be solved in polynomial time by reducing to a bipartite matching problem. On the other hand, packing 2 × 2 squares is known to be NP-complete. In this paper, we fill the gap between dominoes and 2 × 2 squares, that is, we consider the packing puzzle...

متن کامل

Approximation of Two-Dimensional Rectangle Packing

1-d bin packing and 2-d bin packing are classic NP-complete problems that are motivated by industrial applications of stock cutting, data storage, etc. In this paper, we look at a slightly more general problem that is primarily motivated by VLSI design. In VLSI design, one wants to pack a given number of rectangles (which might be RAM chips, transistors, etc.) into a wafer of minimum area to re...

متن کامل

Software ENgineering An approximation algorithm for square packing

We consider the problem of packing squares into bins which are unit squares, where the goal is to minimize the number of bins used. We present an algorithm for this problem with an absolute worst-case ratio of 2, which is optimal provided P ≠ NP. 2000 Mathematics Subject Classification: 68W25, 68W4

متن کامل

An approximation algorithm for square packing

We consider the problem of packing squares into bins which are unit squares, where the goal is to minimize the number of bins used. We present an algorithm for this problem with an absolute worst-case ratio of 2, which is optimal provided P 6= NP.

متن کامل

An Absolute 2-Approximation Algorithm for Two-Dimensional Bin Packing

We consider the problem of packing rectangles into bins that are unit squares, where the goal is to minimize the number of bins used. All rectangles have to be packed nonoverlapping and orthogonal, i.e., axis-parallel. We present an algorithm for this problem with an absolute worst-case ratio of 2, which is optimal provided P 6= NP.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009